package com.library.web.controller.vo;

import com.library.common.utils.bean.BeanUtils;
import com.library.domain.AppActivity;
import com.library.domain.AppBanner;
import lombok.Data;

/**
 * @Author julyWhj
 * @Description $
 * @Date 2022/3/27 9:30 上午
 **/
@Data
public class BannerModel extends AppBanner {
    private AppActivity appActivity;

    public static BannerModel toModel(AppBanner appBanner) {
        BannerModel bannerModel = new BannerModel();
        BeanUtils.copyProperties(appBanner, bannerModel);
        return bannerModel;
    }
}
